#ifndef SOCKET_H
#define SOCKET_H

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>

extern char g_ip[];
extern int g_port;

extern int user_socket;
extern int  sys_socket;
extern int  grp_socket;

int CreateSocket(const char* ip, int port, int zu);

int Sock_Init();



#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

#endif /* SOCKET_H */



